furny.entities
Class MetaData

java.lang.Object
  extended by furny.entities.MetaData

@Entity
public class MetaData
extends java.lang.Object

This class represents the metadata of a furniture. This is a value object that is mapped by hibernate to a relational database.

Since:
10.08.2012
Author:
Stephan Dreyer

Field Summary
private  java.lang.String description
           
private  com.jme3.math.Vector3f dimension
           
private  long id
           
private  java.lang.String itemNumber
           
private  java.lang.String name
           
private  double price
           
private  java.util.Set<Tag> tags
           
 
Constructor Summary
MetaData()
          Default constructor.
 
Method Summary
 java.lang.String getDescription()
          Getter for the description.
 com.jme3.math.Vector3f getDimension()
          Getter for the dimension (width, height, length).
 java.lang.Float getHeight()
          Getter for the height in meters.
 long getId()
          Getter for the id.
 java.lang.String getItemNumber()
          Getter for the item number.
 java.lang.Float getLength()
          Getter for the length in meters.
 java.lang.String getName()
          Getter for the name.
 java.lang.Double getPrice()
          Getter for the furnitures price.
 java.util.Set<Tag> getTags()
          Getter for the tags.
 java.lang.Float getWidth()
          Getter for the width in meters.
 void setDescription(java.lang.String description)
          Setter for the description.
 void setDimension(com.jme3.math.Vector3f dimension)
          Setter for the dimension (width, height, length).
 void setHeight(java.lang.Float height)
          Setter for the height in meters.
private  void setId(long id)
          Private setter for the id.
 void setItemNumber(java.lang.String itemNumber)
          Setter for the item number.
 void setLength(java.lang.Float length)
          Setter for the length in meters.
 void setName(java.lang.String name)
          Setter for the name.
 void setPrice(java.lang.Double price)
          Setter for the furnitures price.
 void setTags(java.util.Set<Tag> tags)
          Setter for the tags.
 void setWidth(java.lang.Float width)
          Setter for the width in meters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

private long id

name

private java.lang.String name

description

private java.lang.String description

itemNumber

private java.lang.String itemNumber

dimension

private final transient com.jme3.math.Vector3f dimension

price

private double price

tags

private java.util.Set<Tag> tags
Constructor Detail

MetaData

public MetaData()
Default constructor.

Since:
10.08.2012
Method Detail

getId

public long getId()
Getter for the id.

Returns:
The id of the metadata.
Since:
10.08.2012

setId

private void setId(long id)
Private setter for the id. Required by hibernate.

Parameters:
id - The id of the metadata.
Since:
10.08.2012

getName

public java.lang.String getName()
Getter for the name.

Returns:
The name.
Since:
10.08.2012

setName

public void setName(java.lang.String name)
Setter for the name.

Parameters:
name - The name.
Since:
10.08.2012

getDescription

public java.lang.String getDescription()
Getter for the description.

Returns:
The description.
Since:
10.08.2012

setDescription

public void setDescription(java.lang.String description)
Setter for the description.

Parameters:
description - The description
Since:
10.08.2012

getItemNumber

public java.lang.String getItemNumber()
Getter for the item number.

Returns:
The item number
Since:
10.08.2012

setItemNumber

public void setItemNumber(java.lang.String itemNumber)
Setter for the item number.

Parameters:
itemNumber - The item number
Since:
10.08.2012

getWidth

public java.lang.Float getWidth()
Getter for the width in meters.

Returns:
The width
Since:
10.08.2012

setWidth

public void setWidth(java.lang.Float width)
Setter for the width in meters.

Parameters:
width - The width
Since:
10.08.2012

getHeight

public java.lang.Float getHeight()
Getter for the height in meters.

Returns:
The height
Since:
10.08.2012

setHeight

public void setHeight(java.lang.Float height)
Setter for the height in meters.

Parameters:
height - The height
Since:
10.08.2012

getLength

public java.lang.Float getLength()
Getter for the length in meters.

Returns:
The length
Since:
10.08.2012

setLength

public void setLength(java.lang.Float length)
Setter for the length in meters.

Parameters:
length - The length
Since:
10.08.2012

getPrice

public java.lang.Double getPrice()
Getter for the furnitures price.

Returns:
The price
Since:
10.08.2012

setPrice

public void setPrice(java.lang.Double price)
Setter for the furnitures price.

Parameters:
price - The price
Since:
10.08.2012

getDimension

public com.jme3.math.Vector3f getDimension()
Getter for the dimension (width, height, length).

Returns:
Dimension
Since:
10.08.2012

setDimension

public void setDimension(com.jme3.math.Vector3f dimension)
Setter for the dimension (width, height, length).

Parameters:
dimension - Dimension
Since:
10.08.2012

getTags

public java.util.Set<Tag> getTags()
Getter for the tags.

Returns:
The tags
Since:
10.08.2012

setTags

public void setTags(java.util.Set<Tag> tags)
Setter for the tags.

Parameters:
tags - The tags.
Since:
10.08.2012